#include "ObDeathField.h"
#include "D3DApp.h"
#include "Collision.h"
#include "ObPlayer.h"

ObDeathField::ObDeathField(){
	//setId(Deathfield1);
	mInfo	= 0;
	mNeedCollision = true;
	mNeedDispose = false;
}

ObDeathField::~ObDeathField(){

}

bool ObDeathField::setId(int nid){
	if(checkType(nid)){
		mID = nid;
		mWidth	= 16.0f;
		mHeight = 16.0f;
		mCenter = D3DXVECTOR3(mWidth/2, mHeight/2, 0.0f);
		mSpritePos.x = 8;
		mSpritePos.y = 8;
		return true;
	}else{
		return false;
	}
}

bool ObDeathField::checkType(int obID){
	if(obID==Deathfield1){
		return true;
	}
	return false;
}

void ObDeathField::collidedWith(ObObject* object, CollisionRS rs){
	
}

void ObDeathField::update(float dt){
	
}

void ObDeathField::render(ID3DXSprite* mSprite){
}

bool ObDeathField::loadTexture(){
	return true;
}
bool ObDeathField::releaseTexture(){
	return true;
}